package ChaiPiao;

import java.util.ArrayList;
import java.util.List;

public class Note {
    List<GameSelection> gameSelections;

    public Note() {
        this.gameSelections = new ArrayList<>();
    }


    /*****************************************
     * methods
     ***************************************/
    public void addGameSelection(GameSelection selection) {
        this.gameSelections.add(selection);
    }


    /*******************************
     * get set equal...
     *****************************************/
    @Override
    public String toString() {
        String split = "|";
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = 0; i < gameSelections.size(); i++) {
            if (i == gameSelections.size() - 1)
                split = "";
            stringBuffer.append(gameSelections.get(i).toString()).append(split);
        }
        return stringBuffer.toString();
    }
}
